{% extends "base.html" %}
{% block title %}Blog{% endblock%}
{% block content %}
{% load markup %}
<h2>Soltys Blog</h2>

<dl>
{% for blog in latest|dictsortreversed:"pub_date" %}
<dt><a href="{{ blog.get_absolute_url }}">{{ blog.title }}</a></h3>
<dd class="date">{{ blog.pub_date|date:"M j, Y" }}</dd>
<dd>{% if blog.intro %}{{ blog.intro|markdown}}{% else %}{{ blog.body|markdown|truncatewords:"50"}}{% endif %}</dd>
<dd><a href="{{ blog.get_absolute_url }}">Przeczytaj resztę...</a></dd>
{% endfor %}
</dl>

{% endblock %}